package com.ylp.sys.service;

import com.ylp.common.response.PageResult;
import com.ylp.common.response.Result;
import com.ylp.sys.domain.dto.ResetPass;
import com.ylp.sys.domain.dto.UserDto;
import com.ylp.sys.domain.dto.UserPageDto;
import com.ylp.sys.domain.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ylp.sys.domain.vo.UserVo;

import java.util.List;

/**
 * <p>
 * 系统用户表 服务类
 * </p>
 *
 * @author cc
 * @since 2024-07-24
 */
public interface SysUserService extends IService<SysUser> {

    Result<SysUser> getUserById(Long id);

    PageResult<SysUser> pageList(UserPageDto userPageDto);

    void deleteUserByIds(List<Long> ids);


    int addUser(UserDto userDto);

    UserVo getUserAndIdsById(Long id);

    void updateAndRoles(UserDto userDto);

    int resetPass(ResetPass resetPass);

    void updateStatus(SysUser user);
}
